import { createRouter, createWebHistory } from 'vue-router'
import RoleList from '@/views/Role/RoleList.vue'
import DepartmentList from '@/views/Department/DepartmentList.vue'
import PermissionList from '@/views/Permission/PermissionList.vue'
import LogList from '@/views/Log/LogList.vue'
import UserList from '@/views/user/UserList.vue'
import SystemManagement from '@/views/System/SystemManagement.vue'  // 引入系统管理组件
import MyMap from '@/views/Map/MyMap.vue'  // 引入系统管理组件
import Bluetooth from '@/views/System/Bluetooth.vue'  // 引入系统管理组件

const routes = [
    { path: '/role', name: 'Role', component: RoleList },
    { path: '/department', name: 'Department', component: DepartmentList },
    { path: '/permission', name: 'Permission', component: PermissionList },
    { path: '/log', name: 'Log', component: LogList },
    { path: '/user', name: 'User', component: UserList },
    { path: '/map', name: 'MyMap', component: MyMap },
    { path: '/bluetooth', name: 'Bluetooth', component: Bluetooth },
    { path: '/system', name: 'SystemManagement', component: SystemManagement }  // 添加系统管理路由
]

const router = createRouter({
    history: createWebHistory(),
    routes
})

export default router
